package com.yunsom.testdemo.design.command;

/**
 * @author Xbao
 * @description
 * @date 2022/6/7 16:17
 */
public class Stock {

  private String name = "Beer";
  private Integer bottles = 10;

  public void buy(){
    System.out.println("Beer [Name:"+ name +",Bottles:"+ bottles +"] bought");
  }


  public void sell(){
    System.out.println("Beer [Name:"+ name +",Bottles:"+ bottles +"] sold");
  }

}
